import request from '@/utils/request'

// 查询作物列表
export function selectProduct(query) {
  return request({
    url: '/ewem/product/list',
    method: 'get',
    params: query
  })
}

export function addProduct(data) {
  return request({
    url: '/ewem/product/addProduct',
    method: 'post',
    data: data
  })
}


export function addPhysical(data) {
  return request({
    url: '/ewem/product/addPhysical',
    method: 'post',
    data: data
  })
}

export function updateProduct(data) {
  return request({
    url: '/ewem/product/updateProduct',
    method: 'post',
    data: data
  })
}


export function delProduct(productId) {
  return request({
    url: '/ewem/product/delProduct/'+productId,
    method: 'post',
  })
}

export function ProvinceTreeSelect() {
  return request({
    url: '/ewem/product/provinceList',
    method: 'post',
  })
}

export function getBatchNum() {
  return request({
    url: '/ewem/product/getBatchNum',
    method: 'post',
  })
}



export function addQuality(data) {
  return request({
    url: '/ewem/product/addQuality',
    method: 'post',
    data: data
  })
}
